package com.ifengxue.ioc.annotation;

import java.lang.annotation.*;

/**
 * 自动装配
 *
 * @author LiuKeFeng
 * @date 2017-08-11
 */
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Autowired {
    /**
     * 是否强制依赖 bean
     * @return
     */
    boolean required() default true;
}
